import request from '@/http/request'
// 福分商城列表
export const $getScoreList = (params:any) => {
    return request.request({
      url: '/api/scoreExchange',
      method: 'get',
      params: params
    })
  }

// 选择权益商城的商品
export function $selectGoods(params:any){
  return request.request({
    url: '/api/equity/selectEquityName',
    method: 'post',
    params: params
  })
}

// 获取未分配活动的卡券奖品列表
export const $getUndistributedList = (url:any,params:any) => {
    return request.request({
      url: url,
      method: 'get',
      params: params
    })
  }


  // 福分商城上下架

export const $scoreState = (data:any) => {
    return request.request({
      url: '/api/scoreExchange/updateIsFlag',
      method: 'post',
      params: data
    })
  }


  // 获取出资方列表
  export const $getEntList = (params:any) => {
    return request.request({
      url: '/api/ifCode',
      method: 'get',
      params: params
    })
  }
  // 福分商城新增
  export const $scoreAdd = (data:any) => {
    return request.request({
      url: '/api/scoreExchange/save',
      method: 'post',
      data: data
    })
  }

// 福分商场获取兑换记录
export const $getScoreRecord = (data:any) => {
    return request.request({
      url: '/api/scoreExchange/getConsumeList',
      method: 'post',
      params: data
    })
  }
/** 福分商场导出兑换记录导出功能 **/
export function $exportExcel (url, params, method = 'GET') {
  return request.exportExcel(url, params, method)
}